package com.meituan.catering.management.order.biz.service;

import com.meituan.catering.management.common.model.biz.PageBO;
import com.meituan.catering.management.common.model.biz.UserContextBO;
import com.meituan.catering.management.order.biz.model.CateringOrderDetailBO;
import com.meituan.catering.management.order.biz.model.request.SearchCateringOrderBizRequest;

/**
 * 订单查询服务
 */
public interface CateringOrderQueryService {

    /**
     * 分页搜索
     * @param userContextBO
     * @param searchCateringOrderBizRequest
     * @return
     */
    PageBO searchCateringOrder(UserContextBO userContextBO, SearchCateringOrderBizRequest searchCateringOrderBizRequest);

    /**
     * 根据订单id查询订单详情
     *
     * @param tenantId
     * @param userId
     * @param orderId
     * @return
     */
    CateringOrderDetailBO findById(UserContextBO userContextBO, Long orderId);
}
